package com.acoffee.java4;

import com.acoffee.java3.SuperMan;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author acoffee
 * @create 2021-11-11 21:23
 */
public class TestBean {
    @Test
    public void testPerson(){
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService person = context.getBean("uservice", UserService.class);
        User user = person.QueryById(1);
        System.out.println(user);
    }
}
